package com.it.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

// TODO SpringMVC (2)、拦截器的使用
@Controller
@RequestMapping("/inter")
@ResponseBody
public class springmvc02 {
    @GetMapping("/data1")
    public String data1() {
        System.out.println("springmvc02.data1");
        return "ok";
    }

    @GetMapping("/data2")
    public String data2() {
        System.out.println("springmvc02.data2");
        return "ok";
    }

}
